package ms.platform.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 报文模板选择处理类
 * @author four-luck
 * 2017-8-25
 */
public class BzxXmlModelRouteEnum {
	
	//安康e生类核保报文模板 标识
	public static final String AKES_MODEL_CODE = "AKES";
	
	//福鑫双足类核保报文模板 标识
	public static final String FXSZ_MODEL_CODE = "FXSZ";
	
	//渤海人寿优选定期寿险类核保报文模板 标识
	public static final String BHRSYXDQ_MODEL_CODE = "BHRSYXDQ";

	//安康e生类核保报文模板 productCode
	private static final String AKESA_PRODUCT_CODE = "24";
	private static final String AKESB_PRODUCT_CODE = "25";
	private static final String AKESC_PRODUCT_CODE = "26";
	//安康e生类核保报文模板 productCode
	
	
	//福鑫双足类核保报文模板 productCode
	private static final String FXSZC_PRODUCT_CODE = "32";
	//福鑫双足类核保报文模板 productCode
	
	
	//渤海人寿优选定期寿险类核保报文模板 productCode 
	private static final String BHRSYXDQ_PRODUCT_CODE = "35";
	//渤海人寿优选定期寿险类核保报文模板 productCode 
	
	private static Map<String, String> akesXmlModel = new HashMap<String, String>(); //安康e生类核保报文模板
	private static Map<String, String> fxszXmlModel = new HashMap<String, String>(); //福鑫双足类核保报文模板
	private static Map<String, String> bhrsyxdqXmlModel = new HashMap<String, String>(); //渤海人寿优选定期寿险类核保报文模板
	
	//全集
	private static Map<String, String> resources = new HashMap<String, String>();
	
	/**
	 * @功能说明: 静态加载块 
	 * @author: four-luck
	 * @Date: 2017-8-25
	 */
	static {
		//安康e生类
		akesXmlModel.put(AKESA_PRODUCT_CODE, AKES_MODEL_CODE);
		akesXmlModel.put(AKESB_PRODUCT_CODE, AKES_MODEL_CODE);
		akesXmlModel.put(AKESC_PRODUCT_CODE, AKES_MODEL_CODE);
		//安康e生类
		
		//福鑫双足类
		fxszXmlModel.put(FXSZC_PRODUCT_CODE, FXSZ_MODEL_CODE);
		//福鑫双足类
		
		//渤海人寿优选定期寿险类
		bhrsyxdqXmlModel.put(BHRSYXDQ_PRODUCT_CODE, BHRSYXDQ_MODEL_CODE);
		//渤海人寿优选定期寿险类
		
		resources.putAll(akesXmlModel);
		resources.putAll(fxszXmlModel);
		resources.putAll(bhrsyxdqXmlModel);
	}
	
	/**
	 * @功能说明: 通过productNo获取xml模板类别 
	 * @author: four-luck
	 * @Date: 2017-8-25
	 */
	public static String getModelByProductCode(String productCode){
		
		return resources.get(productCode);
	}
}